package com.qiyuesuo.controller;

import com.qiyuesuo.model.User;
import com.qiyuesuo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
@RequestMapping("user")
public class DemoController {
    @Autowired
    private UserService userService;

    @RequestMapping("/list")
    public ModelAndView test() {
    /*    User one = userService.findOne(102L);
        System.out.println(one);*/
        return new ModelAndView("user/list");
    }
}
